package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.QueryUserBanksBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="查询用户银行卡",tags={"查询用户银行卡"})
public class QueryUserBanksController {
    @Autowired
    private QueryUserBanksBiz queryUserBanksBiz;
    @ApiOperation(value="查询用户银行卡")
    @PostMapping(value="/api/user/bank/query")
    public Result queryUserBanks(){
        return HandleResultUtil.querySuccessResult(queryUserBanksBiz.queryUserBank());
    }
}
